package org.openea.eap.module.obpm.model.form.custdialog;

import org.hibernate.validator.constraints.NotEmpty;

import java.io.Serializable;


public class FormCustDialogConditionField
        implements Serializable {
    @NotEmpty
    private String columnName;
    @NotEmpty
    private String dbType;
    @NotEmpty
    private String showName;
    @NotEmpty
    private String condition;
    @NotEmpty
    private String valueSource;
    @NotEmpty
    private Value value;

    //FieldRelation fieldRelation = FieldRelation.AND;
    private String fieldRelation = "and";
    //private String bracket; //括号


    public String getColumnName() {
        return this.columnName;
    }


    public void setColumnName(String columnName) {
        this.columnName = columnName;
    }


    public String getShowName() {
        return this.showName;
    }


    public void setShowName(String showName) {
        this.showName = showName;
    }


    public String getCondition() {
        return this.condition;
    }


    public void setCondition(String condition) {
        this.condition = condition;
    }


    public String getValueSource() {
        return this.valueSource;
    }


    public void setValueSource(String valueSource) {
        this.valueSource = valueSource;
    }


    public String getDbType() {
        return this.dbType;
    }


    public void setDbType(String dbType) {
        this.dbType = dbType;
    }

    public String getFieldRelation() {
        return fieldRelation;
    }

    public void setFieldRelation(String fieldRelation) {
        this.fieldRelation = fieldRelation;
    }

//    public String getBracket() {
//        return bracket;
//    }
//
//    public void setBracket(String bracket) {
//        this.bracket = bracket;
//    }

    public Value getValue() {
        return this.value;
    }


    public void setValue(Value value) {
        this.value = value;
    }


    public static class Value
            implements Serializable {
        private String ctrlType;


        private String ctrlKey;


        private String ctrlReturn;


        private String text;


        public String getCtrlType() {
            return this.ctrlType;
        }


        public void setCtrlType(String ctrlType) {
            this.ctrlType = ctrlType;
        }


        public String getCtrlKey() {
            return this.ctrlKey;
        }


        public void setCtrlKey(String ctrlKey) {
            this.ctrlKey = ctrlKey;
        }


        public String getCtrlReturn() {
            return this.ctrlReturn;
        }


        public void setCtrlReturn(String ctrlReturn) {
            this.ctrlReturn = ctrlReturn;
        }


        public String getText() {
            return this.text;
        }


        public void setText(String text) {
            this.text = text;
        }


    }
}
